<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .container {
            width: 1226px;
            margin: auto;
        }

        header {
            line-height: 40px;
            background-color: #333;
            color: #ddd;
        }

        header .container {
            display: flex;
            justify-content: space-between;
        }

        .top-menu {
            display: flex;
        }

        .top-menu li {
            margin-right: 10px;
        }

        .top-right {
            display: flex;
        }

        .top-right-user {
            display: flex;
        }
    </style>
</head>

<body>

    <header>
        <div class="container">
            <ul class="top-menu">
                <li>
                    <a href="">首页</a>
                </li>
                <li>
                    <a href="">首页</a>
                </li>
                <li>
                    <a href="">首页</a>
                </li>
                <li>
                    <a href="">首页</a>
                </li>
            </ul>
            <div class="top-right">
                <ul class="top-right-user">
                    <li>
                        <a href="">登录</a>
                    </li>
                    <li>
                        <a href="">注册</a>
                    </li>
                </ul>
                <div class="top-cart">购物车</div>
            </div>
        </div>
    </header>


    

</body>

</html>